import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'


export function getAllocationOrderPage(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/getAllocationOrderPage',
        method: 'get',
        params
    })
} 

export function saveOrUpdateAllocationOrder(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/saveOrUpdateAllocationOrder',
        method: 'post',
        data:params
    })
}

export function queryStockProducts(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/queryStockProducts',
        method: 'get',
        params
    })
}

export function queryAllocationOrder(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/queryAllocationOrder',
        method: 'get',
        params
    })
}

export function submitAllocationOrder(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/submitAllocationOrder',
        method: 'post',
        params
    })
}

export function auditAllocationOrder(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/auditAllocationOrder',
        method: 'post',
        params
    })
}

export function deleteAllocationOrder(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/deleteAllocationOrder',
        method: 'post',
        params
    })
}

export function confirmAllocation(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/confirmAllocation',
        method: 'post',
        params
    })
}

export function cancelAllocation(params){  
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/cancelAllocation',
        method: 'post',
        params
    })
}

export function getAllocationOrderDetailPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/allocation/getAllocationOrderDetailPage',
        method: 'get',
        params
    })
}